Carbon


PBHRenameAsync

Header: Files.h Carbon status: Supported

Renames a file, directory, or volume.

OSErr PBHRenameAsync (
    HParmBlkPtr paramBlock
);
paramBlock

A pointer to a basic HFS parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

If a file ID reference exists for the file being renamed, the file ID remains with the file.

SPECIAL CONSIDERATIONS

You cannot use PBHRenameAsync to change the directory in which a file is located.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)